import isFunction from './isFunction'
import mountComponent from './mountComponent'
import mountElementNative from './mountElementNative'

export default function mountElement (virtualDOM, container) {
  if (isFunction(virtualDOM)) {
    mountComponent(virtualDOM, container)
  } else {
    mountElementNative(virtualDOM, container)
  }
}